export const addParams = (tableName, dataMap) => {
  return {
    data: JSON.stringify({
      tableName: tableName,
      data: dataMap
    })
  }
}

export const editParams = (tableName, dataMap, id) => {
  return {
    data: JSON.stringify({
      tableName: tableName,
      data: dataMap,
      id: id + ''
    })
  }
}

export const delParams = (tableName, id) => {
  return {
    data: JSON.stringify({
      tableName: tableName,
      id: id + ''
    })
  }
}